package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class TypeObjectName implements ObjectName {

    private int beginIndex;
    private int endIndex;
    private SchemaQualifiedName schemaResolvedUserDefinedTypeName;

    public TypeObjectName(int beginIndex, SchemaQualifiedName schemaResolvedUserDefinedTypeName) {
        this.beginIndex = beginIndex;
        this.endIndex = schemaResolvedUserDefinedTypeName.getEndIndex();
        this.schemaResolvedUserDefinedTypeName = schemaResolvedUserDefinedTypeName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SchemaQualifiedName getSchemaResolvedUserDefinedTypeName() {
        return schemaResolvedUserDefinedTypeName;
    }
    
}
